package service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import mapper.weibouserMapper;
import po.weiboUser;
import service.weibouserservice;


@Service
public class weibouserserviceimpl implements weibouserservice {
	
	

	@Autowired
	private weibouserMapper weibousermapper;
	
	
	@Override
	public String insertuser(weiboUser wbu) {
		try {
			weibousermapper.insertuser(wbu);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return "error";
		}
		return "success";
	}

	@Override
	public weiboUser queryById(Integer ID) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String deleteuserByid(Integer ID) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String updateuser(weiboUser wbu) {
		
		return null;
	}

	@Override
	public weiboUser queryByAccount(String account) {

		return weibousermapper.queryByAccount(account);
	}

}
